package com.woniuxy.controller;

import com.woniuxy.pojo.OrderLine;
import com.woniuxy.service.OrderLineService;
import com.woniuxy.util.DataGridView;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderLineController {
    private Logger logger= LoggerFactory.getLogger(this.getClass());
    @Autowired
    private OrderLineService orderLineService;
    @GetMapping(value = "orderLines/selectorderLine")
    public DataGridView selectOrderLines(int lineOrdeNo){
        return orderLineService.selectOrderLineByLineOrdeNo(lineOrdeNo);
    }

    @GetMapping(value = "orderLines/total")
    public DataGridView selecttotalBy(int lineOrdeNo){
        return orderLineService.selecttotalBy(lineOrdeNo);
    }






}
